package com.huifer.wgx.repository;

import com.huifer.wgx.model.ProjectEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * <p>Title : ProjectRepository </p>
 * <p>Description : </p>
 *
 * @author huifer
 * @date 2019-03-15
 */
@Repository
public interface ProjectRepository extends JpaRepository<ProjectEntity, Long> ,
        JpaSpecificationExecutor<ProjectEntity> {

    /**
     * 根据id查询项目
     * @param id
     * @return
     */
    ProjectEntity findByProjectId(Long id);

    /**
     * 根据项目名称查询
     *
     * @param projectName 项目名称
     * @return 项目列表
     */
    ProjectEntity findByProjectName(String projectName);



}
